function [ is_reasonable  ] = InputAssertion(v_square,y,f_w,accel,grade)
% sanity check if the inputs are in the reasonable range

%-------------------------TUNNING FACTORS---------------------------------
Vs_Min = 25; Vs_Max = 1600;
Y_Min = 0;   Y_Max = 10000;
Fw_Min = 0;  Fw_Max = 10000;
Accel_Min = -2; Accel_Max = 2 ;
Grade_Min = -0.1; Grade_Max = 0.1 ;
%-------------------------------------------------------------------------
% sainty checks
if (v_square>Vs_Min) && (v_square<Vs_Max) && ...
   (y > Y_Min) && (y < Y_Max) && ...
   (f_w > Fw_Min) && (f_w < Fw_Max) && ...
   (accel > Accel_Min) && (accel < Accel_Max) && ...
   (grade > Grade_Min) && (grade < Grade_Max) 
    
    is_reasonable = true;
else 
    is_reasonable = false;
end

end

